<?php

/**
 * Class Auto Loader
 * @param string $class
 */
function autoLoad($class)
{
    $class = strtolower($class);
    $classPath = str_replace('_', '/', $class) . '.php';
    require_once($classPath);
}

spl_autoload_register('autoLoad');